#define  _CRT_SECURE_NO_WARNINGS 1
#include"Queue.h"

void test() 
{
	Queue q;
	QueueInit(&q); 
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	
	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueBack(&q));
	while (QueueSize(&q))
	{
		printf("%d\n", QueueSize(&q));
		QueuePop(&q);
	}
	/*printf("%d\n", QueueSize(&q));*/
	QueueDestroty(&q);
}

int main() 
{
	test();
	return 0;
}